package com.woniuxy.counter.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient("shares-service")
public interface StockClient {
    /**
     * 通过stockId查找股票信息
     * @param stockId
     * @return
     */
    @GetMapping("getSharesById")
    int getSharesById(int stockId);
}
